package local.blueheart.springcloud.bhmicroserviceorder.feign;


import local.blueheart.springcloud.bhmicroserviceorder.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("api-gateway")
public interface ItemFeignClient {

    @GetMapping("/bh-microservice-item/item/{id}")
    Item queryItemById(@PathVariable("id") Long id);

}
